<?php
ImportClass('json');
$postconfig=isset($_POST)? $_POST : array();

foreach ($postconfig as $key=>$value)
{
    if($key=='opt')
    {
        continue;
    }
    if(is_array($value))
    {
        $value     = FJSON::encode($value);   
    }else
    {
       $value      = replace_pathlocal($value);	   
    }   
    saveConfig($key,$value); 
}
$msg = "Update Config Success !";
$page = "";
page_transfer($msg,$page);
exit();
?>